﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200105B RID: 4187
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournReEnterRogueCocoonStageScRsp : IMessage<RogueTournReEnterRogueCocoonStageScRsp>, IMessage, IEquatable<RogueTournReEnterRogueCocoonStageScRsp>, IDeepCloneable<RogueTournReEnterRogueCocoonStageScRsp>, IBufferMessage
	{
		// Token: 0x170034D6 RID: 13526
		// (get) Token: 0x0600BB07 RID: 47879 RVA: 0x001F8123 File Offset: 0x001F6323
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournReEnterRogueCocoonStageScRsp> Parser
		{
			get
			{
				return RogueTournReEnterRogueCocoonStageScRsp._parser;
			}
		}

		// Token: 0x170034D7 RID: 13527
		// (get) Token: 0x0600BB08 RID: 47880 RVA: 0x001F812A File Offset: 0x001F632A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournReEnterRogueCocoonStageScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170034D8 RID: 13528
		// (get) Token: 0x0600BB09 RID: 47881 RVA: 0x001F813C File Offset: 0x001F633C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournReEnterRogueCocoonStageScRsp.Descriptor;
			}
		}

		// Token: 0x0600BB0A RID: 47882 RVA: 0x001F8143 File Offset: 0x001F6343
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournReEnterRogueCocoonStageScRsp()
		{
		}

		// Token: 0x0600BB0B RID: 47883 RVA: 0x001F814C File Offset: 0x001F634C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournReEnterRogueCocoonStageScRsp(RogueTournReEnterRogueCocoonStageScRsp other) : this()
		{
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BB0C RID: 47884 RVA: 0x001F8198 File Offset: 0x001F6398
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournReEnterRogueCocoonStageScRsp Clone()
		{
			return new RogueTournReEnterRogueCocoonStageScRsp(this);
		}

		// Token: 0x170034D9 RID: 13529
		// (get) Token: 0x0600BB0D RID: 47885 RVA: 0x001F81A0 File Offset: 0x001F63A0
		// (set) Token: 0x0600BB0E RID: 47886 RVA: 0x001F81A8 File Offset: 0x001F63A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x170034DA RID: 13530
		// (get) Token: 0x0600BB0F RID: 47887 RVA: 0x001F81B1 File Offset: 0x001F63B1
		// (set) Token: 0x0600BB10 RID: 47888 RVA: 0x001F81B9 File Offset: 0x001F63B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600BB11 RID: 47889 RVA: 0x001F81C2 File Offset: 0x001F63C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournReEnterRogueCocoonStageScRsp);
		}

		// Token: 0x0600BB12 RID: 47890 RVA: 0x001F81D0 File Offset: 0x001F63D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournReEnterRogueCocoonStageScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.BattleInfo, other.BattleInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BB13 RID: 47891 RVA: 0x001F8220 File Offset: 0x001F6420
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BB14 RID: 47892 RVA: 0x001F8275 File Offset: 0x001F6475
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BB15 RID: 47893 RVA: 0x001F827D File Offset: 0x001F647D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BB16 RID: 47894 RVA: 0x001F8288 File Offset: 0x001F6488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BB17 RID: 47895 RVA: 0x001F82E4 File Offset: 0x001F64E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BB18 RID: 47896 RVA: 0x001F833C File Offset: 0x001F653C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournReEnterRogueCocoonStageScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BB19 RID: 47897 RVA: 0x001F83A4 File Offset: 0x001F65A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BB1A RID: 47898 RVA: 0x001F83B0 File Offset: 0x001F65B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 34U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.battleInfo_ == null)
					{
						this.BattleInfo = new SceneBattleInfo();
					}
					input.ReadMessage(this.BattleInfo);
				}
			}
		}

		// Token: 0x04004B57 RID: 19287
		private static readonly MessageParser<RogueTournReEnterRogueCocoonStageScRsp> _parser = new MessageParser<RogueTournReEnterRogueCocoonStageScRsp>(() => new RogueTournReEnterRogueCocoonStageScRsp());

		// Token: 0x04004B58 RID: 19288
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004B59 RID: 19289
		public const int BattleInfoFieldNumber = 4;

		// Token: 0x04004B5A RID: 19290
		private SceneBattleInfo battleInfo_;

		// Token: 0x04004B5B RID: 19291
		public const int RetcodeFieldNumber = 11;

		// Token: 0x04004B5C RID: 19292
		private uint retcode_;
	}
}
